package com.jikexueyuan.getcontact;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;

public class MainActivity extends Activity {

	private ListView showcontact;
	private MyAdapter myAdapter;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		GetNumber.getNumber(this);
		showcontact = (ListView) findViewById(R.id.showcontact);
		myAdapter = new MyAdapter(GetNumber.lists, this);
		showcontact.setAdapter(myAdapter);
	}

}
